
package com.tool.btn;

import com.tool.tcpimg.UIUtils;
import java.awt.event.MouseEvent;
import org.come.Jpanel.OptionsJpanel;



public class OptionsBtn extends MoBanBtn {

	private OptionsJpanel jpanel;

	public OptionsBtn(String iconpath, int type, String text, OptionsJpanel jpanel) {
		super(iconpath, type, UIUtils.COLOR_BTNPUTONG);
		setText(text);
		setFont(UIUtils.TEXT_HY16);
		setVerticalTextPosition(0);
		setHorizontalTextPosition(0);
		this.jpanel = jpanel;
	}
	public OptionsBtn(String iconpath, int type, String text, OptionsJpanel jpanel, String sm) {
		super(iconpath, type, UIUtils.COLOR_BLACK);
		setText(text);
		setFont(UIUtils.TEXT_HY16);
		setVerticalTextPosition(0);
		setHorizontalTextPosition(0);
		this.jpanel = jpanel;
	}


	@Override
    public void chooseyes()
	{
	}

	@Override
    public void chooseno()
	{
	}

	@Override
    public void nochoose(MouseEvent e)
	{
		jpanel.tipBox("确定".equals(getText()));
	}
}
